﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>培训考题查看</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="../../../static/css/font.css">
    <link rel="stylesheet" href="../../../static/css/weadmin.css">
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style type="text/css">
        .showleft {
            text-align: left;
            min-width: 150px;
        }
    </style>
</head>
<body>
    <div class="weadmin-body">

        <div class="layui-form-item">
            <label class="layui-form-label">
                题目类型：
            </label>
            <label id="FTName" class="layui-form-label showleft">
            </label>
            <label class="layui-form-label">
                知识点：
            </label>
            <label id="KKName" class="layui-form-label showleft">
            </label>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                题目内容：
            </label>
            <label id="Question" class="layui-form-label showleft" style="width:80%;min-width:400px;">
            </label>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                选项A：
            </label>
            <label id="OptionA" class="layui-form-label showleft">
            </label>
            <label class="layui-form-label">
                选项B：
            </label>
            <label id="OptionB" class="layui-form-label showleft">
            </label>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                选项C：
            </label>
            <label id="OptionC" class="layui-form-label showleft">
            </label>
            <label class="layui-form-label">
                选项D：
            </label>
            <label id="OptionD" class="layui-form-label showleft">
            </label>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                答案：
            </label>
            <label id="Answer" class="layui-form-label showleft">
            </label>
            <label class="layui-form-label">
                分值：
            </label>
            <label id="QueValue" class="layui-form-label showleft">
            </label>
        </div>
        <!--<div class="layui-form-item">
        <label class="layui-form-label">
            题型：
        </label>
        <label id="QueType" class="layui-form-label showleft" >
        </label>
    </div>-->
    </div>
    <script src="../../../lib/layui/layui.js" charset="utf-8"></script>
    <script src="../../../static/js/common.js" charset="utf-8"></script>

    <script>
        layui.use(['jquery', 'layer'], function () {
            var $ = layui.jquery,
                layer = layui.layer;
            $.support.cors = true;
            $(function () {
                $.ajax({
                    url: ApiUrl + "TrainQuestion/GetSingleTrainQuestion",
                    type: 'get',
                    dataType: 'json',
                    cache: false,
                    headers: {
                        "userid": JSON.parse(window.localStorage.authInfo).UserId,
                        "signtoken": JSON.parse(window.localStorage.authInfo).SignToken,
                    },
                    data: { TQID: getUrlParam("TQID") },
                    success: function (data) {

                        if (data.StatusCode == 200 && data.Count != 0) {
                            $.each(data.Data[0], function (name, value) {
                                $("#" + name).html(value);
                            });
                        }
                        //var json = JSON.parse(data);
                        //for (var key in json) {
                        //    $("#" + key).html(json[key]);
                        //}
                    }
                });
            })
        });
    </script>
</body>
</html>